#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：python_aiclass 
@File    ：home.py
@IDE     ：PyCharm 
@Author  ：宋怡文
@Date    ：2021/11/4 15:13 
'''
# ai_list = [1,2,3,4,5,6]
# print(ai_list[0:3:2])
# print(ai_list[::-1])

# set1 = {s for s in 'hogwartss' if s in 'hello word'}
# print(set1)

data1 = {'a':1,'b':2,'c':3}
data2 = {v:k for k,v in data1.items()}
print(data2)